package com.ambow.Entity;

import java.io.Serializable;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;


@Entity
@Table
public class Stock extends ID implements Serializable  {
	
	@ManyToOne
	@JoinColumn(name="cell_id",referencedColumnName="id")
	private Cell cell;//架位
	@ManyToOne
	@JoinColumn(name="textBook_id",referencedColumnName="id")
	private TextBook textBook;//教材
	private int amount;
	
	public Cell getCell() {
		return cell;
	}
	public void setCell(Cell cell) {
		this.cell = cell;
	}
	public TextBook getTextBook() {
		return textBook;
	}
	public void setTextBook(TextBook textBook) {
		this.textBook = textBook;
	}
	public int getAmount() {
		return amount;
	}
	public void setAmount(int amount) {
		this.amount = amount;
	}
	
	  
	  
}
